package cn.edu.sjtu.stap.cg.builder;

/**
 * Default factory for creating default CG builders.
 * 
 * @author William
 *
 */
public class DefaultCgBuilderFactory extends ICgBuilderFactory {
    /**
     * Singleton instance.
     */
    private static DefaultCgBuilderFactory instance = new DefaultCgBuilderFactory();
    
    public DefaultCgBuilderFactory() {
        // Empty.
    }
    
    public static DefaultCgBuilderFactory getInstance() {
        return instance;
    }
    
    /**
     * Get the default CG builder.
     */
    public ICgBuilder getCgBuilder() {
        //return DefaultCgBuilder.getInstance();
        return new DefaultCgBuilder();
    }
}
